(function(d, w) {
    const doc = d.documentElement;
    function rem() {
        const width = Math.min(doc.getBoundingClientRect().width, 2210);
        doc.style.fontSize = width / 22.10 + "px";
    }
    rem();
    w.addEventListener("resize", rem);
})(document, window);
